package br.com.joaopessoa.sicap.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "TESTE")
@SequenceGenerator(name = "seqTeste", sequenceName = "seq_teste", allocationSize = 1)
public class Teste implements Serializable {

	private static final long serialVersionUID = 4417165894539640632L;
	
	@Id
	@Column(name = "ID_TESTE")
	@GeneratedValue(generator = "seqTeste", strategy = GenerationType.SEQUENCE)
	private Long id;
	
	@Column(name = "DESCRICAO", length = 150)
	private String desc;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}